from rest_framework import serializers
from RBAC.models import *
class Userser(serializers.ModelSerializer):

    class Meta:
        model = UserModel
        fields = "__all__"


class Positionser(serializers.ModelSerializer):

    class Meta:
        model = PositionModel

        fields = "__all__"

class Permissionser(serializers.ModelSerializer):

    class Meta:
        model = PermissionModel
        fields = '__all__'


class Branchser(serializers.ModelSerializer):

    class Meta:
        model = BranchModel
        fields = "__all__"


class Rankser(serializers.ModelSerializer):


    class Meta:
        model = RankModel
        fields = "__all__"


class Roleser(serializers.ModelSerializer):

    class Meta:
        model = RoleModel
        fields = "__all__"

class Menuser(serializers.ModelSerializer):

    class Meta:
        model = MenuModel
        fields = '__all__'